<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 传值和传址
        let a = 1;
        // 传值
        let b = a;
        console.log(a, b);
        b = 3;
        console.log(b);

        let e = { name: "wfj" };
        // 使用地址
        let f = e;
        console.log(e, f);
        f.name = "baidu.com";
        console.log(e, f);
    </script>
</body>

</html>